<%--
  Created by IntelliJ IDEA.
  User: wpj
  Date: 2015/3/27
  Time: 20:18
  To change this template use File | Settings | File Templates.
--%>
<!DOCTYPE html>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="sec" uri="http://www.springframework.org/security/tags" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<html>
<head>
    <title></title>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    <script type="text/javascript" src="../../js/jquery-1.9.1.js"></script>
    <script type="text/javascript">

        $(function (){
            $('#kaptcha').click(
                    function (){
                        $(this).attr('src', 'kaptcha/kaptcha.do?' + Math.floor(Math.random() * 100));
                    }
            );
        });
    </script>
</head>
<body>
<h1>管理员页面</h1>

<p>欢迎你管理员 ：<sec:authentication property="name" />
<form:form action="/logout" method="post">
  <input type="submit" value="Log out" />
  <input type="hidden"
         name="${_csrf.parameterName}"
         value="${_csrf.token}"/>
</form:form>
<a href="/logout">退出</a>

</body>
</html>
